const pageMixin = require('../../../mixin/pageMixin.js');
const {
  getFeature
} = require("../../../api/api.js");
const { _navigateTo } = require('../../../utils/util.js');
Page({

  mixins: [pageMixin],
  /**
   * 页面的初始数据
   */
  data: {
    loadMethod: getFeature
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.loadData();
  },
  onReachBottom() {
    this.bottomLoading().catch((e) => {
      console.log(e)
    })
  },
  changetofeaturedetail(e) {
    const id = e.currentTarget.dataset;
    console.log("feature-list页面的专栏列表")
    _navigateTo(`./feature-detail/index?id=${id}`);
  }
})